package com.iob.coin.covid19kg;

import com.iob.coin.covid19kg.dataset.DatasetManager;
import com.iob.coin.covid19kg.kg.KGBuilder;
import com.iob.coin.entity.Answer;
import com.iob.coin.entity.Node;
import com.iob.coin.vo.AnswerVO;
import org.apache.jena.rdf.model.Property;
import org.apache.jena.rdf.model.RDFNode;
import org.apache.jena.rdf.model.Resource;
import org.apache.jena.rdf.model.Statement;

import java.util.List;

/**
 * @Author: GuoXinyuan
 * @Date: 2021/6/18
 */
public class full {

    public static AnswerVO paintFullKG(DatasetManager datasetManager, KGBuilder kgBuilder) {
        AnswerVO answerVO = new AnswerVO();
        Answer answer = new Answer();
        answerVO.setMainAnswer(answer);

        List<Statement> statementList = datasetManager.listStatements(null,null,null);
        System.out.println(statementList.size());

        statementList.forEach((statement)->{
            Resource subject = statement.getResource();
            Property property = statement.getPredicate();
            RDFNode object = statement.getObject();

            Node subjectTypeNode = kgBuilder.getNodeTypeNode(subject);
//            Node subject =
        });

        return answerVO;
    }

}
